/*
 * @Description: 国际化配置
 * @Author: seadon
 * @LastEditors: seadon
 * @Date: 2021-07-07 18:13:23
 * @LastEditTime: 2021-07-07 18:50:49
 */
import { createI18n, useI18n } from 'ok-i18n'
const LOCALE_KEY = 'local'
enum LocaleEnum {
	zh = 'zh-CN',
	en = 'en-US',
	ja = 'ja-JP',
}
const locale = localStorage.getItem('locale') || LocaleEnum.zh

const i18n = createI18n({
	locale,
})
export { i18n, LocaleEnum, LOCALE_KEY, useI18n, locale }
